//
//  AvtionClassCell.m
//  A段项目,漫画
//
//  Created by dlios on 15-4-30.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "AvtionClassCell.h"
#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height
@implementation AvtionClassCell
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.picImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, WIDTH * 1.1, 120)];
        self.picImageView.backgroundColor = [UIColor yellowColor];
        self.picImageView.layer.borderWidth = 3;
        self.picImageView.layer.cornerRadius = 10;
        self.picImageView.layer.masksToBounds = YES;
        self.picImageView.layer.borderColor = [UIColor clearColor].CGColor;
        [self.contentView addSubview:self.picImageView];
        [_picImageView release];
        
        self.nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(0,90, WIDTH * 1.1, 30)];
        self.nameLabel.textAlignment = NSTextAlignmentCenter;
        self.nameLabel.layer.borderWidth = 0.3;
        self.nameLabel.layer.cornerRadius = 8;
        self.nameLabel.layer.masksToBounds = YES;
        
        self.nameLabel.backgroundColor = [UIColor whiteColor];
        self.nameLabel.alpha = 0.56;
        self.nameLabel.textColor = [UIColor blackColor];
        self.nameLabel.font = [UIFont systemFontOfSize:15];
        [self.contentView addSubview:self.nameLabel];
        [_nameLabel release];
    }
    return self;
}
- (void)dealloc
{
    [_picImageView release];
    [_nameLabel release];
    [super dealloc];
}
@end
